﻿using LoveNote.Application.Share.Login;
using LoveNote.Application.Share.Shell;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using TookKit.Mvvm.Attributes;
using TookKit.Mvvm.Bindings;
using TookKit.Mvvm.Enums;

namespace LoveNote.Shell.Services
{
    [DependencyInjection(Lifetime.Singleton, typeof(IShellManager))]
    class ShellManager : ObservableObject, IShellManager
    {
        private Visibility visibility = Visibility.Collapsed;
        /// <summary>
        /// 是否显示遮罩
        /// </summary>
        public Visibility Visibility
        {
            get { return visibility; }
            set { SetProperty(ref visibility, value); }
        }
        public void Hide()
        {
            Visibility = Visibility.Collapsed;
        }

        public void Show()
        {
            Visibility = Visibility.Visible;
        }
    }
}
